package com.fjl.javatest;

public class listTest {

	public static void main(String[] args) {
		
		String[] strings = new String[]{"a","b","c"};
		for(String s:strings){
			System.out.println("strings:"+s);
		}
		
		String[] strs = new String[2];
		strs[0] = "湖南";
		strs[1] = "hainan";
		for(String str:strs){
			System.out.println("strs:"+str);
		}
		
		int[] i = new int[]{1,2,2,3};
		int[] in = new int[2];
		in[0] = 1;
		in[1] = 2;
		for(int test:in){
			System.out.println("i:"+test);
		}
	}
}
